Release 10.1A: OpenEdge Development:
Java Open Clients


Constructors

The ProDataGraph class has two constructors:

ProDataGraph created from meta data

The following constructor creates a ProDataGraph object with the specified meta data:

Syntax
ProDataGraph(ProDataGraphMetaData dgmd) 

dgmd

Specifies the meta data as a ProDataGraphMetaData object, which provides all the information necessary to map the ProDataGraph to a Progress 4GL ProDataSet. (See the "ProDataGraphMetaData class" section.)

ProDataGraph created from an initial DataGraph

The following constructor creates a ProDataGraph object from a specified initial Java SDO DataGraph object:

Syntax
ProDataGraph(DataGraph dg, String dgName, ProDataRelationMetaData[] drList) 

dg

Specifies the initial Java SDO DataGraph object. This DataGraph object must conform to the ProDataGraph format: the root DataObject must contain only reference properties (to DataObject lists), where each reference property represents a temp-table of a 4GL ProDataSet. If the root DataObject does not have this format, the constructor throws an Open4GLException.

dgName

Specifies the name of the ProDataGraph, which is typically identical to the 4GL name of a corresponding ProDataSet.

drList

Specifies an array of ProDataRelationMetaData objects. In the DataObject hierarchy of the initial DataGraph, if a parent-child relationship exists between two temp-tables (DataObject lists), you must add a corresponding ProDataRelationMetaData object that describes this relationship to the ProDataRelationMetaData array. (See the "ProDataRelationMetaData class" section.)


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095